package name.fowler.refactoring.simplestore;

public class Rental {
		private Movie m_Movie;
		private int m_DaysRented;

		public Rental(Movie movie, int daysRented) {
				m_Movie = movie;
				m_DaysRented = daysRented;
		}

		public double bill() {
				return m_Movie.bill(m_DaysRented);
		}
				
		public int bonus() {
				return m_Movie.bonus(m_DaysRented);
		}

		public String title() {
				return m_Movie.getTitle();
		}
	
}

